package huawei.exam1;

import java.util.Scanner;

/**
 * @author : Rookie
 * @description :
 * @date : 2022/11/16
 */
public class HJ1 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String str = scanner.nextLine();
            String[] strArr = str.split(" ");
            str = strArr[strArr.length - 1];
            System.out.println(str.length());
        }
    }
}
